<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color:red">*</span>{:__('所属客户')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-relation_id" data-rule="required" data-source="kuerp/customers/index" class="form-control selectpage" data-search-field="customer_name,customer_code" data-field="customer_name" name="row[relation_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color:red">*</span>{:__('Follow_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-follow_type" class="form-control" name="row[follow_type]" data-rule="required">
                <option value="">{:__('请选择')}</option>
                {foreach name="follow_type" item="vo"}
                <option value="{$vo}">{$vo}</option>
                {/foreach}
            </select> 
            <!-- <input id="c-follow_type" class="form-control" name="row[follow_type]" type="text"> -->
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color:red">*</span>{:__('Follow')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-follow" class="form-control" name="row[follow]" data-rule="required">
                <option value="">{:__('请选择')}</option>
                {foreach name="follow_status" item="vo"}
                <option value="{$vo}">{$vo}</option>
                {/foreach}
            </select> 
            <!-- <input id="c-follow" class="form-control" name="row[follow]" type="text"> -->
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Next_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-next_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[next_time]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">上传附件:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" class="form-control" size="35" name="row[files]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="faupload-image" class="btn btn-danger faupload"
                                        data-resize-quality="0.8"
                                        data-resize-width="1024"
                                        data-resize-height="768"
                                        data-input-id="c-image"
                                        data-url="kuerp/base/upload"
                                        data-multiple="true" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>

                </div>
                <span class="msg-box n-right"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-image"></ul>
        </div>

	</div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><span style="color:red">*</span>{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control" data-rule="required" rows="5" name="row[content]" placeholder="勤跟进，多签单"></textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
